Skip to content

fix(bb-sol): collapse Debug.sol import to forge-fmt-stable form#23146

Closed
AztecBot wants to merge 1 commit into
merge-train/barretenbergfrom
claudebox/fix-rebuild-patterns
Closed

fix(bb-sol): collapse Debug.sol import to forge-fmt-stable form#23146
AztecBot wants to merge 1 commit into
merge-train/barretenbergfrom
claudebox/fix-rebuild-patterns

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

Summary

barretenberg/sol/bootstrap.sh::build_sol runs forge fmt before forge build. After PR #22659 trimmed unused imports from test/utils/Debug.sol, the multi-line import block became short enough that forge fmt collapses it to a single line — but the file was committed in its multi-line shape. That rewrites the file mid-CI and triggers ci3/cache_content_hash's "Noticed changes to rebuild patterns" warning, disabling cache hits for every downstream *-tests target.

Failing CI: http://ci.aztec-labs.com/1778494208886637[bb-sol-tests] ERROR: Noticed changes to rebuild patterns during CI run: barretenberg/sol/test/utils/Debug.sol (and the same on yarn-project-tests, boxes-tests, playground-tests, aztec-up-tests).

This commits the file in the form forge fmt already produces, so the working tree stays clean during CI.

Verification

cd barretenberg/sol
forge fmt --check    # clean
forge fmt            # no changes

Full analysis: https://gist.github.com/AztecBot/671170ebb26d05023e0563fe83850046

ClaudeBox log: https://claudebox.work/s/656b4ce2b1e5e7de?run=1

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels May 11, 2026
@alexghr
Copy link
Copy Markdown
Contributor

alexghr commented May 12, 2026

close in favour of #23168

@alexghr alexghr closed this May 12, 2026
rangozd pushed a commit to rangozd/aztec-packages that referenced this pull request May 16, 2026
…Protocol#23168)

## Summary

Companion to AztecProtocol#23146
(merge-train/barretenberg), recreated against `next`.

`barretenberg/sol/bootstrap.sh::build_sol` runs `forge fmt` before
`forge build`. PR AztecProtocol#22659 (now in `next` via merge-train/fairies) trimmed
unused imports from `test/utils/Debug.sol`; once trimmed, the multi-line
import block was short enough that `forge fmt` collapses it to a single
line. That rewrites the file mid-CI and trips `ci3/cache_content_hash`
with `ERROR: Noticed changes to rebuild patterns during CI run`,
disabling cache hits for every downstream `*-tests` target — as seen in
http://ci.aztec-labs.com/1778494208886637.

This PR puts `Debug.sol` directly into the forge-fmt-stable form
(single-line import). After rebase, this is the only diff against
`next`.

## Verification

```bash
cd barretenberg/sol
forge fmt --check    # clean
forge fmt            # no changes
```

Full analysis:
https://gist.github.com/AztecBot/86bb7e59c1a9998f77dd1bc51dd9319d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants